package com.ly.consumer.util;

//import lombok.Data;

import java.util.Collections;
import java.util.List;
import java.util.Map;

//@Data
public class DynamicSource {
    private String id;
    private List<Map<String, String>> dataList;

    public static List<DynamicSource> createList(String id, List<Map<String, String>> dataList) {
        DynamicSource dynamicSource = new DynamicSource();
        dynamicSource.id = id;
        dynamicSource.dataList = dataList;
        return Collections.singletonList(dynamicSource);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public List<Map<String, String>> getDataList() {
        return dataList;
    }

    public void setDataList(List<Map<String, String>> dataList) {
        this.dataList = dataList;
    }
}
